import { Request, Response } from "express";
import { AdminService } from "../services/admin.service";

export class AdminController {
  private adminService: AdminService;
  constructor() {
    this.adminService = new AdminService();
  }

  stats = async (req: Request, res: Response) => {
    const data = await this.adminService.stats();
    res.status(200).json({
      code: 200,
      success: true,
      message: "Stats retrieved successfully",
      data: data,
    });
  };
}
